var select = function(ele) {
  var $ele = $(ele);

  // var ipt = document.getElementById('ipt');
  // var ul = document.getElementById('ul');
  var $ipt = $ele.children('.select_input');
  var $ul = $ele.children('.select_list');

  var $lis = $ul.children();

  $ipt.on('focus', function() {
    $ul.css('display', 'block');
  });
  $ipt.on('blur', function() {
    setTimeout(function() {
      $ul.css('display', 'none');
    }, 200)
  });
  //模拟option点击事件
  for (var i = 0; i < $lis.length; i++) {
    $($lis[i]).on('click', function() {
      $ipt.val($(this).children('a').html());
    });
  }
}
